package com.lwl.service.impl.scl;


import com.lwl.dao.scl.TSclRecordDetailsMapper;
import com.lwl.entity.scl.TSclRecordDetails;
import com.lwl.service.scl.TSclRecordDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * (TSclRecordDetails)表服务实现类
 *
 * @author makejava
 * @since 2022-10-28 21:44:03
 */
@Service
public class TSclRecordDetailsServiceImpl implements TSclRecordDetailsService {
   @Autowired
   private TSclRecordDetailsMapper tSclRecordDetailsMapper;

   @Override
   public Boolean addRecordDetails(List<TSclRecordDetails> tSclRecordDetails) {
      int i=0;
      for (TSclRecordDetails tSclRecordDetail : tSclRecordDetails) {
         i+=tSclRecordDetailsMapper.insert(tSclRecordDetail);
      }
      return tSclRecordDetails.size()==i;
   }
}
